package com.scedu.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

@RestController
public class RouterController {


    @RequestMapping({"/about"})
    public  String about(){

        return "about";
    }

    @RequestMapping("/toLogin")
    public  String toLogin(){
        return "/login";
    }


    @RequestMapping("/level1/{id}")
    public  String level1(@PathVariable("id") String id)
    {
        return "level1/"+id;
    }

    @RequestMapping("/level2/{id}")
    public  String level2(@PathVariable("id") String id){
        return "level2/"+id;
    }
    @RequestMapping("/level3/{id}")
    public  String level3(@PathVariable("id") String id){
        return "level3/"+id;
    }


}
